package com.student.dong.service.impl;

import com.student.dong.entity.AlgsAllStudent;
import com.student.dong.mapper.AlgsAllStudentMapper;
import com.student.dong.service.IAllStudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Program: animalSystem->IAllStudentServiceImpl
 * @Description:
 * @Author: donghang
 * @Date: 2023-03-23 10:07
 * @Version： 1.0
 **/
@Service
public class IAllStudentServiceImpl implements IAllStudentService {


    @Autowired
    private AlgsAllStudentMapper studentMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return studentMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(AlgsAllStudent record) {
        return studentMapper.insert(record);
    }

    @Override
    public int insertSelective(AlgsAllStudent record) {
        return studentMapper.insertSelective(record);
    }

    @Override
    public AlgsAllStudent selectByPrimaryKey(Long id) {
        return studentMapper.selectByPrimaryKey(id);
    }

    @Override
    public AlgsAllStudent selByUserId(Long userId) {
        return studentMapper.selByUserId(userId);
    }

    @Override
    public int updateByPrimaryKeySelective(AlgsAllStudent record) {
        return studentMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(AlgsAllStudent record) {
        return studentMapper.updateByPrimaryKey(record);
    }
}
